package com.qf.fmall2202.order.service;

import com.qf.fmall2202.order.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.fmall2202.order.vo.AddOrderReturnVo;

/**
 * <p>
 * 订单  服务类
 * </p>
 *
 * @author lzh
 * @since 2022-11-09
 */
public interface IOrdersService extends IService<Orders> {

    /**
     * 添加订单
     * @param orders  例如
*                     "actualAmount": 2,
 * 	            "orderRemark": "来电蒜",
     * 	      "payType": 1,
     * 	       "receiverAddress": "湖北 武汉 江夏区 光谷大道77号",
     *      	"receiverMobile": "13030303300",
     *      	"receiverName": "张三",
     *      	"totalAmount": 2,
     *      	"userId": "20"
     * @param cids   购物车ID 以 ，分割的 字符串 例如 30，31
     */
    AddOrderReturnVo add(Orders orders, String cids);

    /**
     * 查询订单支付状态
     * @param orderId
     * @return
     */
    String status(String orderId) throws Exception;

}
